Make some aspects of check/build available as an API.
authorNick Cameron <ncameron@mozilla.com>
Tue, 6 Dec 2016 03:15:46 +0000 (17:15 -1000)
committerNick Cameron <ncameron@mozilla.com>
Thu, 5 Jan 2017 02:58:58 +0000 (15:58 +1300)
commit8c3b360528a9ccd03f74649cf61eb6441de39037
tree5b48b3a756457b3b0bc4851bc22850689b8fbda9
parent154a30b4c8b129ecf4646a7bebbab5ff9a6bbffc
Make some aspects of check/build available as an API.

There are two key parts to this commit:
* let API clients run `cargo check` with minimal fuss (ops/cargo_check.rs),
* let API clients intercept and customise Cargo's calls to rustc (all the Executor stuff).
src/bin/check.rs
src/cargo/core/shell.rs
src/cargo/ops/cargo_check.rs [new file with mode: 0644]
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_install.rs
src/cargo/ops/cargo_package.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/mod.rs
src/cargo/util/config.rs
src/cargo/util/mod.rs